﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UserConTrols_Gio_Hang : System.Web.UI.UserControl
{
    DataProvider duLieu = new DataProvider();
    protected void Page_Load(object sender, System.EventArgs e)
    {
        if (!IsPostBack)
        {
            noidunggiohangmini.Text = duLieu.Lay_Gio_Hang(1).ToString();
        }
    }

    protected void ClearGioHang_Click(object sender, System.EventArgs e)
    {
        duLieu.Xoa_Sach_Gio_Hang();
        Session["TrangThaiSuaDDHang"] = 0;
        Session["IDDDHangChuanBiSua"] = 0;
        Response.Redirect("Default.aspx");
    }

    protected void XemGioHang_Click(object sender, System.EventArgs e)
    {
        Response.Redirect("Gio_Hang.aspx");
    }
}